const express = require('express')
const router = express.Router()
const {adminGetArticle,adminSendArticle,adminDownLineArticle,adminUpLineArticle} = require('../controller/article.js')
//管理员获取文章路由
router.get('admin/adminGetArticle',adminGetArticle)
//管理员下架某一篇文章路由
router.put("admin/adminDownLineArticle",adminDownLineArticle)
//管理员上架某一篇文章路由
router.put("admin/adminUpLineArticle",adminUpLineArticle)
module.exports = router